/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.googlecode.flealancemarket.service.facades;

import com.googlecode.flealancemarket.metamodel.PrivateMessage;
import com.googlecode.flealancemarket.metamodel.User;
import java.util.List;

/**
 *
 * @author vanja
 */
public interface MessagesFacade {

    public PrivateMessage savePrivateMessage(PrivateMessage pm);
    public int countUnreadMessages(User user);
    public List<PrivateMessage> getMessages(User user, int pageNumber);
    public int countMessages(User user);
    public PrivateMessage getMessage(Long id);
    public void deleteMessage(PrivateMessage message);
    public void deleteMessageById(Long id);
    public int countSentMessages(User user);
    public List<PrivateMessage> getSentMessages(User user, int pageNumber);

}
